/*CodeBuilder v1.0.4 by 2022/2/27 0:10:45 */
using System;
using ASmile.ORM.Entitys;

namespace ASmile.DBModel
{
	public partial class VLog_Sql : EntityBase
	{
		private System.Int32 _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(CNId, 0, true, IsPrimaryKey = true, IsIdentity = true)]
		public System.Int32 Id
		{
			get { return _Id; }
			set
			{
				if (!OnPropertyChanged(CNId, _Id, value)) return;
				_Id = value;
				SetFieldChanged(CNId) ;
			}
		}

		private System.DateTime _LogTime;
		/// <summary>
		/// LogTime
		/// </summary>
		[Entity(CNLogTime, 1, true)]
		public System.DateTime LogTime
		{
			get { return _LogTime; }
			set
			{
				if (!OnPropertyChanged(CNLogTime, _LogTime, value)) return;
				_LogTime = value;
				SetFieldChanged(CNLogTime) ;
			}
		}

		private System.Decimal _Interval;
		/// <summary>
		/// Interval
		/// </summary>
		[Entity(CNInterval, 2, true)]
		public System.Decimal Interval
		{
			get { return _Interval; }
			set
			{
				if (!OnPropertyChanged(CNInterval, _Interval, value)) return;
				_Interval = value;
				SetFieldChanged(CNInterval) ;
			}
		}

		private System.String _TableName;
		/// <summary>
		/// TableName
		/// </summary>
		[Entity(CNTableName, 3)]
		public System.String TableName
		{
			get { return _TableName; }
			set
			{
				if (!OnPropertyChanged(CNTableName, _TableName, value)) return;
				_TableName = value;
				SetFieldChanged(CNTableName) ;
			}
		}

		private System.String _ResultMark;
		/// <summary>
		/// ResultMark
		/// </summary>
		[Entity(CNResultMark, 4, true)]
		public System.String ResultMark
		{
			get { return _ResultMark; }
			set
			{
				if (!OnPropertyChanged(CNResultMark, _ResultMark, value)) return;
				_ResultMark = value;
				SetFieldChanged(CNResultMark) ;
			}
		}

		private System.Int32 _RowCount;
		/// <summary>
		/// RowCount
		/// </summary>
		[Entity(CNRowCount, 5, true)]
		public System.Int32 RowCount
		{
			get { return _RowCount; }
			set
			{
				if (!OnPropertyChanged(CNRowCount, _RowCount, value)) return;
				_RowCount = value;
				SetFieldChanged(CNRowCount) ;
			}
		}

		private System.String _AddUser;
		/// <summary>
		/// AddUser
		/// </summary>
		[Entity(CNAddUser, 6)]
		public System.String AddUser
		{
			get { return _AddUser; }
			set
			{
				if (!OnPropertyChanged(CNAddUser, _AddUser, value)) return;
				_AddUser = value;
				SetFieldChanged(CNAddUser) ;
			}
		}

		private System.String _AddHost;
		/// <summary>
		/// AddHost
		/// </summary>
		[Entity(CNAddHost, 7)]
		public System.String AddHost
		{
			get { return _AddHost; }
			set
			{
				if (!OnPropertyChanged(CNAddHost, _AddHost, value)) return;
				_AddHost = value;
				SetFieldChanged(CNAddHost) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNLogTime = "LogTime";
		public const string CNInterval = "Interval";
		public const string CNTableName = "TableName";
		public const string CNResultMark = "ResultMark";
		public const string CNRowCount = "RowCount";
		public const string CNAddUser = "AddUser";
		public const string CNAddHost = "AddHost";
		#endregion

	}
}
